home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
amos
/
52 cards.amos
/
52 cards.amosSourceCode
Wrap
AMOS Source Code
|
1995-03-16
|
6KB
|
198 lines
Screen Open 2,350,300,8,Lowres
Curs Off : Flash Off
Colour 0,$0 : Colour 1,$FFF : Colour 2,$F00 : Colour 3,$AAF
Colour 4,$444
Cls 4
Goto ST
ER:
Ink 0
Box 20,5 To 65,85 : Box 67,5 To 112,85 : Box 114,5 To 159,85
Box 161,5 To 206,85 : Box 208,5 To 253,85 : Box 255,5 To 300,85
Box 20,87 To 65,167 : Box 67,87 To 112,167 : Box 114,87 To 159,167
Box 161,87 To 206,167 : Box 208,87 To 253,167 : Box 255,87 To 300,167
Box 20,169 To 65,249
Return
RE:
Ink 1,1,0
Bar 20,5 To 65,85 : Bar 67,5 To 112,85 : Bar 114,5 To 159,85
Bar 161,5 To 206,85 : Bar 208,5 To 253,85 : Bar 255,5 To 300,85
Bar 20,87 To 65,167 : Bar 67,87 To 112,167 : Bar 114,87 To 159,167
Bar 161,87 To 206,167 : Bar 208,87 To 253,167 : Bar 255,87 To 300,167
Bar 20,169 To 65,249
Return
ST:
Pen 1 : Paper 4
Locate 10,22 : Print Space$(30)
Locate 10,24 : Print "Hearts (H):Spades(S)"
Locate 10,26 : Print "Diamonds(D):Clubs(C)"
Locate 10,28 : Print "Return to editor(E)"
Locate 10,22 : Input "Select suit H,S,D,C,E ";A$
L=Len(A$)
If L=0 Then Goto ST
Gosub RE : Gosub ER
Set Pattern 0
If A$="H" Then Ink 2,1,0 : M=1 : Gosub HE : Goto ST
If A$="h" Then Ink 2,1,0 : M=1 : Gosub HE : Goto ST
If A$="S" Then Ink 0,1,0 : M=2 : Gosub HE : Goto ST
If A$="s" Then Ink 0,1,0 : M=2 : Gosub HE : Goto ST
If A$="D" Then Ink 2,1,0 : M=3 : Gosub HE : Goto ST
If A$="d" Then Ink 2,1,0 : M=3 : Gosub HE : Goto ST
If A$="C" Then Ink 0,1,0 : M=4 : Gosub HE : Goto ST
If A$="c" Then Ink 0,1,0 : M=4 : Gosub HE : Goto ST
If A$="E" Then Edit
If A$="e" Then Edit
If A$<>"H" Then Goto ST
If A$<>"S" Then Goto ST
If A$<>"D" Then Goto ST
If A$<>"C" Then Goto ST
If A$<>"E" Then Goto ST
FA:
If M=1 Then Gosub H
If M=2 Then Gosub S
If M=3 Then Gosub D
If M=4 Then Gosub C
Return
HE:
A$="A"
Text 24,16,A$ : Text 52,80,A$
X=38 : Y=45 : Gosub FA
A$="2"
Text 70,16,A$ : Text 100,80,A$
X=71 : Y=25 : Gosub FA
X=99 : Y=65 : Gosub FA
A$="3"
Text 116,16,A$ : Text 150,80,A$
X=120 : Y=25 : Gosub FA
X=130 : Y=45 : Gosub FA
X=145 : Y=65 : Gosub FA
A$="4"
Text 164,16,A$ : Text 195,80,A$
X=165 : Y=25 : Gosub FA
X=190 : Y=25 : Gosub FA
X=165 : Y=65 : Gosub FA
X=190 : Y=65 : Gosub FA
A$="5"
Text 212,16,A$ : Text 243,80,A$
X=213 : Y=25 : Gosub FA
X=238 : Y=25 : Gosub FA
X=225 : Y=45 : Gosub FA
X=213 : Y=65 : Gosub FA
X=238 : Y=65 : Gosub FA
A$="6"
Text 260,16,A$ : Text 290,80,A$
X=260 : Y=25 : Gosub FA
X=260 : Y=45 : Gosub FA
X=260 : Y=65 : Gosub FA
X=285 : Y=25 : Gosub FA
X=285 : Y=45 : Gosub FA
X=285 : Y=65 : Gosub FA
A$="7"
Text 24,98,A$ : Text 52,164,A$
X=24 : Y=106 : Gosub FA
X=24 : Y=124 : Gosub FA
X=24 : Y=150 : Gosub FA
X=49 : Y=106 : Gosub FA
X=49 : Y=124 : Gosub FA
X=49 : Y=150 : Gosub FA
X=36 : Y=116 : Gosub FA
A$="8"
Text 70,98,A$ : Text 100,164,A$
X=70 : Y=106 : Gosub FA
X=70 : Y=122 : Gosub FA
X=70 : Y=137 : Gosub FA
X=70 : Y=150 : Gosub FA
X=98 : Y=106 : Gosub FA
X=98 : Y=122 : Gosub FA
X=98 : Y=137 : Gosub FA
X=98 : Y=150 : Gosub FA
A$="9"
Text 118,98,A$ : Text 146,164,A$
X=117 : Y=106 : Gosub FA
X=117 : Y=122 : Gosub FA
X=117 : Y=137 : Gosub FA
X=117 : Y=150 : Gosub FA
X=145 : Y=106 : Gosub FA
X=145 : Y=122 : Gosub FA
X=145 : Y=137 : Gosub FA
X=145 : Y=150 : Gosub FA
X=132 : Y=114 : Gosub FA
A$="10"
Text 165,98,A$ : Text 185,164,A$
X=165 : Y=106 : Gosub FA
X=165 : Y=122 : Gosub FA
X=165 : Y=137 : Gosub FA
X=165 : Y=150 : Gosub FA
X=193 : Y=106 : Gosub FA
X=193 : Y=122 : Gosub FA
X=193 : Y=137 : Gosub FA
X=193 : Y=150 : Gosub FA
X=178 : Y=114 : Gosub FA
X=178 : Y=145 : Gosub FA
A$="J"
Text 213,98,A$ : Text 242,164,A$
X=211 : Y=106 : Gosub FA
X=241 : Y=150 : Gosub FA
X=215 : Y=106
Z=30 : Gosub FG
Set Pattern 0
Bar 225,96 To 245,101
Bar 220,157 To 240,162
A$="Q"
Set Pattern 0
Text 260,98,A$ : Text 289,164,A$
X=258 : Y=106 : Gosub FA
X=287 : Y=150 : Gosub FA
X=261 : Y=106
Z=31 : Gosub FG
Polyline 276,100 To 286,100 To 289,95 To 274,95 To 276,100
Paint 280,98
Polyline 271,157 To 282,157 To 284,162 To 270,162 To 271,157
Paint 280,160
A$="K"
Set Pattern 0
Text 24,180,A$ : Text 52,246,A$
X=23 : Y=188 : Gosub FA
X=52 : Y=232 : Gosub FA
X=24 : Y=186
Z=32 : Gosub FG
Polyline 39,180 To 49,180 To 51,175 To 37,175 To 39,180
Paint 45,177
Plot 37,173 : Plot 51,173 : Plot 44,173
Plot 37,174 : Plot 51,174 : Plot 44,174
Polyline 34,237 To 44,237 To 46,242 To 32,242 To 34,237
Paint 40,240
Plot 32,244 : Plot 46,244 : Plot 39,244
Plot 32,243 : Plot 46,243 : Plot 39,243
Return
FG:
Polyline X+15,Y-5 To X+10,Y+5 To X+15,Y+5 To X+15,Y-5 : Set Pattern 0 : Paint X+13,Y+3
Polyline X+25,Y-5 To X+25,Y+5 To X+30,Y+5 To X+25,Y-5 : Set Pattern 0 : Paint X+28,Y+4
Polyline X+10,Y+50 To X+5,Y+40 To X+10,Y+40 To X+10,Y+50 : Set Pattern 0 : Paint X+8,Y+43
Polyline X+20,Y+50 To X+20,Y+40 To X+25,Y+40 To X+20,Y+50 : Set Pattern 0 : Paint X+22,Y+43
Plot X+18,Y-2 : Plot X+21,Y-2
Polyline X+20,Y To X+20,Y+2 : Polyline X+18,Y+4 To X+21,Y+4
Plot X+13,Y+48 : Plot X+16,Y+48
Polyline X+15,Y+46 To X+15,Y+44 : Polyline X+13,Y+42 To X+16,Y+42
Box X+16,Y+6 To X+24,Y+10 : Box X+11,Y+36 To X+19,Y+40
Box X+4,Y+11 To X+30,Y+35 : Set Pattern Z : Paint X+10,Y+20
Return
H:
Circle X+2.5,Y-2.5,2.5 : Paint X+2,Y-2,0
Circle X+7.5,Y-2.5,2.5 : Paint X+7,Y-2,0
Polyline X,Y-2 To X+5,Y+5 To X+10,Y-2 : Paint X+2,Y,0
Return
S:
Circle X+2.5,Y+2,2.5 : Paint X+2,Y+1,0
Circle X+7.6,Y+2,2.5 : Paint X+6,Y+1,0
Polyline X-1,Y+2 To X+5,Y-4 To X+10,Y+2 : Paint X+5,Y
Bar X+4.5,Y-2 To X+5.5,Y+6
Return
D:
Polyline X,Y To X+5,Y-5 To X+10,Y To X+5,Y+5 To X,Y : Paint X+2,Y,0
Return
C:
Circle X+5,Y-1.5,2.5 : Paint X+4,Y-1,0
Circle X+2.5,Y+2.4,2.5 : Paint X+3,Y+2,0
Circle X+7.5,Y+2.4,2.5 : Paint X+8,Y+2,0
Bar X+4.5,Y+4 To X+5.5,Y+6
Return